package net.gazhi.delonix.rbac.form;

import org.apache.logging.log4j.core.config.plugins.validation.constraints.Required;
import org.hibernate.validator.constraints.Length;

/**
 * 系统用户编辑表单
 * 
 * @author linzb
 */
public class UserEditForm {

	private int id;

	private int groupId;

	private int roleIds;

	private int actionIds;

	@Required(message = "用户名称不能为空！")
	@Length(max = 64, message = "用户名称不能超过64个字符")
	private String name;

	@Required(message = "账号不能为空！")
	@Length(max = 64, message = "账号不能超过64个字符")
	private String loginName;

	@Length(max = 64, min = 64, message = "密码格式错误！")
	private String loginPasswd;

	private boolean disabled;

	@Length(max = 64, message = "手机号不能超过64个字符")
	private String mobile;

	@Length(max = 64, message = "邮箱不能超过64个字符")
	private String email;

	@Length(max = 256, message = "备注不能超过256个字符")
	private String remark;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getGroupId() {
		return groupId;
	}

	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}

	public int getRoleIds() {
		return roleIds;
	}

	public void setRoleIds(int roleIds) {
		this.roleIds = roleIds;
	}

	public int getActionIds() {
		return actionIds;
	}

	public void setActionIds(int actionIds) {
		this.actionIds = actionIds;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getLoginPasswd() {
		return loginPasswd;
	}

	public void setLoginPasswd(String loginPasswd) {
		this.loginPasswd = loginPasswd;
	}

	public boolean isDisabled() {
		return disabled;
	}

	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
